@extends('layouts.admin')
@section('content')
						<div id="content-header">
				<h1>用户管理</h1>
				<div class="btn-group">
					<a class="btn btn-large tip-bottom" title="Manage Files"><i class="icon-file"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Users"><i class="icon-user"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Comments"><i class="icon-comment"></i><span class="label label-important">5</span></a>
					<a class="btn btn-large tip-bottom" title="Manage Orders"><i class="icon-shopping-cart"></i></a>
				</div>
			</div>
			<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>用户列表</a>
				<a href="#" class="current">用户修改</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">						
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
								</span>
								<span class="label label-info">用户首页</span>
							</div>
							<div class="widget-content">

			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>									
								</span>
								<h5>修改用户</h5>
							   @if(count($errors)>0)
					          <div class="mark">
					            @if(is_object($errors))
					            @foreach($errors->all() as $error)
					                <p>{{$error}}</p>
					            @endforeach
					            @else
					                    <p>{{$errors}}</p> 
					             @endif
					                </div>
					            @endif
					        </div>
							<div class="widget-content nopadding">
								<form action="{{url('admin/message/'.$mess->id.'?page='.$page)}}" method="post" class="form-horizontal" />
								        {{method_field('PUT')}}
        								{{csrf_field()}}
									<div class="control-group" style="width:500px;margin:0 auto">
										<label class="control-label">留言人</label>
										<div class="controls">
											<input type="text" name="admin_name" value="{{$mess->admin_name}}" style="height:30px" disabled="disabled"/>
										</div>
									</div>
								<div class="control-group" style="width:500px;margin:0 auto">
										<label class="control-label">被留言人</label>
										<div class="controls">
											<input type="text" name="user_name" value="{{$mess->user_name}}" style="height:30px" disabled="disabled"/>
										</div>
									</div>
								<div class="control-group" style="width:500px;margin:0 auto">
										<label class="control-label">留言内容</label>
										<div class="controls">
											<textarea  name="content" value="" id="message" rows="10" cols="10">{{$mess->content}}</textarea>
										</div>
									</div>
									<div class="form-actions" style="width:100px;margin:0 auto;background:rgb(249,249,249)">
										<input type="submit" value="确认提交" class="btn btn-primary">
									</div>
								</form>
							</div>
						</div>						
					</div>
				</div>							
							</div>
						</div>
						
					</div>
				</div>
				<div class="row-fluid">
					<div id="footer" class="span12">
						2012 &copy; Unicorn Admin. Brought to you by <a href="https://wrapbootstrap.com/user/diablo9983">diablo9983</a>
					</div>
				</div>
			</div>
@endsection